home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0060.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  842 b   |  39 lines

  1. On Thu, 2 Feb 1995, Mike Crowl wrote:
  2.  
  3. > Giday all,
  4. > just looking for some help in writing a tetris game. The bit I'd like 
  5. > some help with is how you would check to see if the block had hit another 
  6. > block and so on.
  7. >
  8.  
  9.     Keep an internal representation of the board in an Array... 
  10.   initialize it to 0 to mean all spots on the board are empty and make
  11.   a 1 mean that the spot is filled...
  12.  
  13.     ie. a 5x5 tetris board...
  14.  
  15.     00000  --> Dim Board(4,4) 
  16.     00000
  17.     00000
  18.     00000
  19.     00000
  20.  
  21.  
  22.     So know you must also conceptual move the tetris piece inside
  23.    the Array... this will let you know where you can move... when you
  24.    find that you can't move.. set the board spots to ones...
  25.  
  26.     There are many different ways you can handle moving the piece
  27.    inside the Array... 
  28.  
  29.  
  30.                         mike
  31.  
  32. > Any help would be much appreciated.
  33. > Ben Crowl
  34.  
  35.